package com.cos.lession70.demo;

import com.cos.lession70.services.UserServices;
import com.cos.lession70.services.impl.UserServicesImpl;
import com.cos.lession70.services.impl.UserServicesNewImpl;
import com.cos.lession70.util.MyFactory;

/**
 * @author: COS
 * @time: 2022/9/26 10:40
 * @description:
 */
public class Demo {
    public static void main(String[] args) {
//        UserServices us = new UserServicesNewImpl();
//        us.getHello();
        MyFactory mf = new MyFactory("/my-factory.properties");
        UserServices us = (UserServices) mf.getBean("u1");
        us.getHello();
    }
}
